package com.glodon.paas.search.model;

import java.io.Serializable;
import java.util.List;

import javax.ws.rs.QueryParam;

/**
 * 索引对象的基类.
 * 
 * @author botao.liao
 * 
 */
public class IndexBase implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;// 索引的Id
    @QueryParam("name")
    private String name; // 名称
    @QueryParam("databagId")
    private String databagId; // 对应的数据包Id
    @QueryParam("projectId")
    private String projectId; // 对应文件所属的项目Id
    @QueryParam("parentId")
    private String parentId; // 文件的父目录Id
    @QueryParam("ownerId")
    private String ownerId; // 文件的拥有者Id
    @QueryParam("version")
    private String version; // 文件的版本
    @QueryParam("shares")
    private List<String> shares; // 对文件有访问权限的用户Id
    @QueryParam("path")
    private String path; // 文件对应的路径

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDatabagId() {
        return databagId;
    }

    public void setDatabagId(String databagId) {
        this.databagId = databagId;
    }

    public String getProjectId() {
        return projectId;
    }

    public void setProjectId(String projectId) {
        this.projectId = projectId;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }

    public List<String> getShares() {
        return shares;
    }

    public void setShares(List<String> shares) {
        this.shares = shares;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }
}
